module.exports = {
	css: {
		loaderOptions: {
			postcss: {
				plugins: [
					require('postcss-plugin-px2rem')({
						rootValue: 100,
						selectorBlackList: ['vant'],
						propList: ['*']
					})
				]
			}
		}
	},
	devServer: {
		proxy: {
			'/api': {
				target: 'http://localhost:8080',
				changeOrigin: true,
				pathRewrite: {
					'^/api': '/api'
				}
			}
		}
	},
	configureWebpack: {
		resolve: {
			alias: {
				assets: '@/assets',
				css: '@/assets/css',
				views: '@/views'
			}
		}
	}
}
